<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>首页</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link rel="stylesheet" type="text/css" href="/Public/Dt/libs/bootstrap/css/bootstrap.min.css"/>
		
		<link rel="stylesheet" type="text/css" href="/Public/Dt/css/base.css?v=0.0.3"/>
		<link rel="stylesheet" type="text/css" href="/Public/Dt/css/style.css?v=0.0.3"/>
		<link rel="stylesheet" type="text/css" href="/Public/Dt/css/moble.css?v=0.0.3"/>
		
	</head>
	<body>
		<div class="zhegai"></div>
		<div class="left_box">
			<div class="logo_box">
				<img src="/Public/Dt/img/pcLogo.png"/>
			</div>

			<div class="nav_box">
				<ul class="nav_contai">
					<li class="nav_list <?php if(checknav('index.html') == 1 ): ?>active<?php endif; ?>">
						<a href="index.html"><i class="nav_icon nav_shouye"></i>首页</a>
					</li>
					<li class="nav_list <?php if(checknav('hyzl.html') == 1 or checknav('xgzl.html') == 1 or checknav('czmm.html') == 1 or checknav('hyft.html') == 1 or checknav('sqtd.html') == 1): ?>active<?php endif; ?>">
						<a href="javascript:;"><i class="nav_icon nav_grzx"></i>用户资料<i class="jt"></i></a>
						<dl class="towlave" <?php if(checknav('hyzl.html') == 1 or checknav('xgzl.html') == 1 or checknav('czmm.html') == 1 or checknav('hyft.html') == 1 or checknav('sqtd.html') == 1): ?>style="display: block;"<?php endif; ?>>
							<dd><a href="/user/hyzl.html">会员资料</a></dd>
							<dd><a href="/user/xgzl.html">修改资料</a></dd>
							<dd><a href="/user/czmm.html">重置密码</a></dd>
							<dd><a href="/user/hyft.html">会员复投</a></dd>
							<dd><a href="/user/sqtd.html">申请退单</a></dd>
						</dl>
					</li>
					<li class="nav_list <?php if(checknav('zchy.html') == 1 or checknav('jbsj.html') == 1 or checknav('wdhy.html') == 1 ): ?>active<?php endif; ?>">
						<a href="javascript:;"><i class="nav_icon nav_ywgl"></i>代理管理<i class="jt"></i></a>
						<dl class="towlave" <?php if(checknav('zchy.html') == 1 or checknav('jbsj.html') == 1 or checknav('wdhy.html') == 1 ): ?>style="display: block;"<?php endif; ?>>
							<dd><a href="/user/zchy.html">注册会员</a></dd>
							<dd><a href="/user/jbsj.html">成为代理</a></dd>
							<dd><a href="/user/wdhy.html">我的会员</a></dd>
						</dl>
					</li>
					<li class="nav_list <?php if(checknav('jjmx.html') == 1 or checknav('wycz.html') == 1 or checknav('hbzh.html') == 1 or checknav('top_up.html') == 1 or checknav('txgl.html') == 1 ): ?>active<?php endif; ?>">
						<a href="javascript:;"><i class="nav_icon nav_tdgl"></i>我的财务<i class="jt"></i></a>
						<dl class="towlave" <?php if(checknav('jjmx.html') == 1 or checknav('wycz.html') == 1 or checknav('hbzh.html') == 1 or checknav('top_up.html') == 1 or checknav('txgl.html') == 1 ): ?>style="display: block;"<?php endif; ?>>
							<dd><a href="/user/jjmx.html">奖金明细</a></dd>
							<dd><a href="/user/wycz.html">我要投资</a></dd>
							<dd><a href="/user/top_up.html">我要充值</a></dd>
							<dd><a href="/user/hbzh.html">货币转换</a></dd>
							<dd><a href="/user/txgl.html">提现管理</a></dd>
						</dl>
					</li>
					<li class="nav_list <?php if(checknav('xwgg.html') == 1 or checknav('wyly.html') == 1 or checknav('lyxq.html') == 1 ): ?>active<?php endif; ?>">
						<a href="javascript:;"><i class="nav_icon nav_cwgl"></i>系统公告<i class="jt"></i></a>
						<dl class="towlave" <?php if(checknav('xwgg.html') == 1 or checknav('wyly.html') == 1 or checknav('lyxq.html') == 1 ): ?>style="display: block;"<?php endif; ?>>
							<dd><a href="/user/xwgg.html">新闻公告</a></dd>
							<dd><a href="/user/wyly.html">我要留言</a></dd>
							<dd><a href="/user/lyxq.html">留言列表</a></dd>
						</dl>
					</li>
				</ul>
				<div class="exit_box text_c">
					<a href="javascript:;">
						<p class="exit_icon"><img src="/Public/Dt/img/exit.png"/></p>
						<p><a href="/user/logout.html">安全退出</a></p>
					</a>
				</div>
			</div>
		</div>

		<div class="right_box">
			<div class="topbar">
				<div class="float_r topbar_user">
					<div class="user_box">
						<div class="tx_img">
							<img src="/Public/Dt/img/touxiang.png">
						</div>
						<div class="text_l user_info">
							<p><?php echo (session('username')); ?></p>
						</div>
					</div>
				</div>
				<div class="nav_btn visible-xs-block float_r">
					<i class="glyphicon glyphicon-th-list"></i>
				</div>
			</div>

			
	<div class="right_main">
		<div class="panel panel-default">
		  	<div class="panel-heading">
		  		<i class="inde_icon icon_jjmx"></i>成为代理</span>
		  	</div>
		  	<div class="panel-body">
    			<div class="row-fluid">
					<div class="span12">
						<div class="tabbable" id="tabs-402357">
							<ul class="nav nav-tabs">
								<li class="active">
									<a href="#panel-401018" data-toggle="tab">申请记录</a>
								</li>
								<li>
									<a href="#panel-862181" data-toggle="tab">申请成为代理</a>
								</li>
				
							</ul>
							<div class="tab-content">
								<div class="tab-pane " id="panel-862181">
									<div class="h-30"></div>
									<?php if($user["level"] >= '2'): ?>您已经是代理，无需再申请！<?php endif; ?>
									<?php if($user["level"] < '2'): ?><form class="form-horizontal pp" action="/user/sj_form" method="post">
											<div class="form-group">
												<label for="inputEmail3" class="col-sm-2 control-label">平台银行账户</label>
												<div class="col-sm-3" style="width: 45%;">
													<!-- <p><?php echo ($setting["bank_name"]); ?>---<?php echo ($setting["bank_num"]); ?>---<?php echo ($setting["bank_username"]); ?>---<?php echo ($setting["bank_zhi"]); ?></p> -->
													<select name="yh">
				
														<?php if(is_array($adminbank)): foreach($adminbank as $key=>$v): ?><option value="<?php echo ($v["id"]); ?>"><?php echo ($v["bank_name"]); ?>---<?php echo ($v["bank_num"]); ?>---<?php echo ($v["bank_username"]); ?>---<?php echo ($v["bank_zhi"]); ?></option><?php endforeach; endif; ?>
				
													</select>
												</div>
											</div>
											<div class="form-group">
												<label for="inputEmail3" class="col-sm-2 control-label">当前等级</label>
												<div class="col-sm-3">
													<p><?php echo (session('level')); ?></p>
												</div>
											</div>
											<div class="form-group">
												<label for="inputPassword3" class="col-sm-2 control-label">代理费<span>*</span></label>
												<div class="col-sm-3">
													<input type="text" class="form-control" id="inputEmail3" name="price" value="<?php echo ($setting["agent_money"]); ?>" readonly>
												</div>
											</div>
											<div class="form-group">
												<label for="inputPassword3" class="col-sm-2 control-label"></label>
												<div class="col-sm-10">
													<p style="color: red;">交代理费<?php echo ($setting["agent_money"]); ?>人民币，可成为普通代理，成为代理才有资格拿管理奖！</p>
												</div>
											</div>
											<div class="form-group">
												<label for="inputPassword3" class="col-sm-2 control-label">二级密码</label>
												<div class="col-sm-3">
													<input type="password" class="form-control" id="inputPassword3" name="mm2">
												</div>
											</div>
											<div class="form-group">
												<div class="col-sm-offset-2 col-sm-3">
													<button type="submit" class="btn btn-primary">提交</button>
												</div>
											</div>
										</form>
										<div class="form-group">
											<label for="inputEmail3" class="col-sm-2 control-label"></label>
											<div class="col-sm-3" style="width: 45%;">
												<p><span style="color:red;">代理费转帐说明：</span></br>
													<!-- 1、投资金额<?php echo ($setting["min_money"]); ?>~<?php echo ($setting["max_money"]); ?>,且必须是<?php echo ($setting["bei_money"]); ?>的倍数；</br> -->
													<!-- 1、每次"充值编号"均不相同,务必将"充值编号"正确复制填写到引号汇款页面的"附言"栏目中； -->
													1、帐号不固定，转帐前请仔细核对该转账帐号；</br>
													2、代理费金额与实际转账金额不符，代理审核将无法通过；</br>
													3、转账后如10分钟未到账，请联系客服，告知您的会员账号和您的代理费金额及你的银行用户姓名。
												</p>
											</div>
										</div><?php endif; ?>
								</div>
								<div class="tab-pane active" id="panel-401018">
									<div class="h-30"></div>
									<table class="table table-bordered">
										<thead>
											<tr style="background:rgb(249,249,249)">
												<th style="text-align:center;">升级前级别</th>
												<th style="text-align:center;">代理费</th>
												<th style="text-align:center;">升级后级别</th>
												<th style="text-align:center;">日期</th>
												<th style="text-align:center;">平台银行卡号</th>
												<th style="text-align:center;">平台开户银行</th>
												<th style="text-align:center;">平台开户姓名</th>
												<th style="text-align:center;">平台支行信息</th>
												<th class="grid-action-td" style="text-align:center;">状态</th>
											</tr>
										</thead>
										<tbody>
											<?php if(is_array($list)): foreach($list as $key=>$v): ?><tr id="b1ed7b71-84bb-41aa-b6e9-a67e01486762">
													<td style="text-align:center;"><?php echo ($v["sjq"]); ?></td>
													<td style="text-align:center;"><?php echo ($v["price"]); ?></td>
													<td style="text-align:center;"><?php echo ($v["sjh"]); ?></td>
													<td style="text-align:center;"><?php echo (date("Y/m/d H:i:s",$v["jstime"])); ?></td>
													<td style="text-align:center;"><?php echo ($v["bank_num"]); ?></td>
													<td style="text-align:center;"><?php echo ($v["bank_name"]); ?></td>
													<td style="text-align:center;"><?php echo ($v["bank_username"]); ?></td>
													<td style="text-align:center;"><?php echo ($v["bank_zhi"]); ?></td>
													<td class="grid-action-td" style="text-align:center;">
														<div class="grid-action"><?php echo ($v["zt"]); ?></div>
													</td>
												</tr><?php endforeach; endif; ?>
				
										</tbody>
									</table>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>

		</div>

		<script type="text/javascript" charset="utf-8" src="/Public/Dt/libs/bootstrap/js/jquery.min.js?v=0.0.1"></script>
		<script type="text/javascript" charset="utf-8" src="/Public/Dt/js/jxmc.js?v=0.0.1"></script>
		<script type="text/javascript" charset="utf-8" src="/Public/Dt/libs/bootstrap/js/bootstrap.min.js?v=0.0.1"></script>

		
	</body>
</html>